


import 'package:bike_ride/common/mvvm/base_view_model.dart';
import 'package:bike_ride/common/widget/notifier_widget.dart';
import 'package:bike_ride/model/entrance/view/entrance_v.dart';
import 'package:dio/dio.dart';

class EntranceViewModel extends PageViewModel<EntranceViewState> {
  CancelToken? cancelToken;

  @override

  @override

  /// 请求数据
  @override
  @override
  onCreate() {
    cancelToken = CancelToken();
    pageDataModel = PageDataModel();
    requestData();
  }

  @override
  onDispose() {
    if (!(cancelToken?.isCancelled ?? true)) {
      cancelToken?.cancel();
    }
    super.onDispose();
  }

  /// 请求数据
  @override
  Future<PageViewModel?> requestData({Map<String, dynamic>? params}) async {
    return null;

  }
}